package tom.client.stock;

import java.util.List;

import tom.shared.Product;
import tom.shared.StkAdjust;
import tom.shared.Stock;

import com.google.gwt.user.client.rpc.RemoteService;

public interface Service extends RemoteService {
	public Product selectProduct(String id);

	public boolean deleteProduct(String id);

	public boolean insertProduct(Product record);

	public boolean updateProduct(Product record);

	public List<Stock> selectStock(String proCode);
	
	public boolean updateStock(String proCode, String invNo, String fromStock, String toStock, Integer qty);
	
	public List<StkAdjust> selectStkAdjustByInvoice(String invNo, String proCode);

	public List<Double> selectVAT();

	boolean deleteStkAdjust(String stkAdjCode);
}
